discord: Ignore old message edits#199
discord: Ignore old message edits#199soliton- wants to merge 1 commit intomatterbridge-org:masterfrom
Conversation
Since discord occasionally sends spurious message edits for old messages make it possible to ignore those older than MaxEditDays.
9a4ffca to
92e1510
Compare
|
Great. Do you think it would be hard to make the max edit duration configurable? Also, we need a changelog entry and documentation in the Discord bridge docs for it. Thanks. |
Based on #132 (comment) I believe that is already in. Still needs a default and probably a special value like -1 to disable.
I'll figure out what that means. Ideally I'd like to know how to handle the lint issue and have confirmation on the config setting before documenting it. Well, actually I just asked on IRC about the lint issue. The same code the linter mentions already exists in the pre-existing line above and there are more cases in the file as far as I can tell so it might be weird to just change one instance? How is that normally handled? |
Since discord occasionally sends spurious message edits for old messages make it possible to ignore those older than MaxEditDays.
Based on https://github.com/42wim/matterbridge/pull/2239/changes and discussion in #132.